﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014ED RID: 5357
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class VideoKeyInfo : IMessage<VideoKeyInfo>, IMessage, IEquatable<VideoKeyInfo>, IDeepCloneable<VideoKeyInfo>, IBufferMessage
	{
		// Token: 0x17004379 RID: 17273
		// (get) Token: 0x0600EFB2 RID: 61362 RVA: 0x00280310 File Offset: 0x0027E510
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<VideoKeyInfo> Parser
		{
			get
			{
				return VideoKeyInfo._parser;
			}
		}

		// Token: 0x1700437A RID: 17274
		// (get) Token: 0x0600EFB3 RID: 61363 RVA: 0x00280317 File Offset: 0x0027E517
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return VideoKeyInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700437B RID: 17275
		// (get) Token: 0x0600EFB4 RID: 61364 RVA: 0x00280329 File Offset: 0x0027E529
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return VideoKeyInfo.Descriptor;
			}
		}

		// Token: 0x0600EFB5 RID: 61365 RVA: 0x00280330 File Offset: 0x0027E530
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public VideoKeyInfo()
		{
		}

		// Token: 0x0600EFB6 RID: 61366 RVA: 0x00280338 File Offset: 0x0027E538
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public VideoKeyInfo(VideoKeyInfo other) : this()
		{
			this.videoKey_ = other.videoKey_;
			this.id_ = other.id_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EFB7 RID: 61367 RVA: 0x00280369 File Offset: 0x0027E569
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public VideoKeyInfo Clone()
		{
			return new VideoKeyInfo(this);
		}

		// Token: 0x1700437C RID: 17276
		// (get) Token: 0x0600EFB8 RID: 61368 RVA: 0x00280371 File Offset: 0x0027E571
		// (set) Token: 0x0600EFB9 RID: 61369 RVA: 0x00280379 File Offset: 0x0027E579
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong VideoKey
		{
			get
			{
				return this.videoKey_;
			}
			set
			{
				this.videoKey_ = value;
			}
		}

		// Token: 0x1700437D RID: 17277
		// (get) Token: 0x0600EFBA RID: 61370 RVA: 0x00280382 File Offset: 0x0027E582
		// (set) Token: 0x0600EFBB RID: 61371 RVA: 0x0028038A File Offset: 0x0027E58A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x0600EFBC RID: 61372 RVA: 0x00280393 File Offset: 0x0027E593
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as VideoKeyInfo);
		}

		// Token: 0x0600EFBD RID: 61373 RVA: 0x002803A1 File Offset: 0x0027E5A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(VideoKeyInfo other)
		{
			return other != null && (other == this || (this.VideoKey == other.VideoKey && this.Id == other.Id && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EFBE RID: 61374 RVA: 0x002803E0 File Offset: 0x0027E5E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.VideoKey != 0UL)
			{
				num ^= this.VideoKey.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EFBF RID: 61375 RVA: 0x00280438 File Offset: 0x0027E638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EFC0 RID: 61376 RVA: 0x00280440 File Offset: 0x0027E640
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EFC1 RID: 61377 RVA: 0x0028044C File Offset: 0x0027E64C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.VideoKey != 0UL)
			{
				output.WriteRawTag(88);
				output.WriteUInt64(this.VideoKey);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Id);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EFC2 RID: 61378 RVA: 0x002804A8 File Offset: 0x0027E6A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.VideoKey != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.VideoKey);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EFC3 RID: 61379 RVA: 0x00280500 File Offset: 0x0027E700
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(VideoKeyInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.VideoKey != 0UL)
			{
				this.VideoKey = other.VideoKey;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EFC4 RID: 61380 RVA: 0x00280550 File Offset: 0x0027E750
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EFC5 RID: 61381 RVA: 0x0028055C File Offset: 0x0027E75C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 88U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Id = input.ReadUInt32();
					}
				}
				else
				{
					this.VideoKey = input.ReadUInt64();
				}
			}
		}

		// Token: 0x04005EB6 RID: 24246
		private static readonly MessageParser<VideoKeyInfo> _parser = new MessageParser<VideoKeyInfo>(() => new VideoKeyInfo());

		// Token: 0x04005EB7 RID: 24247
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005EB8 RID: 24248
		public const int VideoKeyFieldNumber = 11;

		// Token: 0x04005EB9 RID: 24249
		private ulong videoKey_;

		// Token: 0x04005EBA RID: 24250
		public const int IdFieldNumber = 14;

		// Token: 0x04005EBB RID: 24251
		private uint id_;
	}
}
